#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
const int N = 1e6 + 10;
string a;
string b;
int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0), cout.tie(0);
    getline(cin, a);
    for (int i = 0; i < a.size(); i++)
    {
        if (a[i] == '<')
            cout << "&lt;";
        else if (a[i] == '>')
            cout << "&gt;";
        else
            cout << a[i];
    }
    cout << endl;
    return 0;
}